package com.dc.client.controller;


import com.dc.client.entity.UserEntity;
import com.dc.client.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: 赵聪
 * @Date: 2018/8/13 12:41
 * @Description:
 */
@RestController
public class TestController {
    @Autowired
    private UserService userService;
    @RequestMapping("/tes")
    public String test(){
        UserEntity userEntity = userService.selectById(1);
        return userEntity.getName();
    }
}
